﻿// =================================================================== 
// 项目说明
//====================================================================
// sushee @Copy Right 2019
// 文件： SmsMessagePoolEntity.cs
// 项目名称：斑马车务
// 创建时间：2019/9/19
// 负责人：sushee
// ===================================================================

using System;
using Dapper.Extensions;

namespace YouWei.Infrastructure.Entity
{
	/// <summary>
	///短信信息池数据实体  
	/// </summary>
    [PrimaryKey("PoolID")]
	public class SmsMessagePool
	{
		///<summary>
		///短信信息池
		///</summary>
		public SmsMessagePool()
		{
		}	
    
		
		///<summary>
		///ID（自增主键）
		///</summary>
        [Column("PoolID","ID（自增主键）")]
        public int PoolID { get; set; }

		///<summary>
		///短信内容
		///</summary>
        [Column("Content","短信内容")]
        public string Content { get; set; }

		///<summary>
		///接收手机号
		///</summary>
        [Column("ReceiveMobile","接收手机号")]
        public string ReceiveMobile { get; set; }
        ///<summary>
        ///接收人电话号码类型，１：移动，２：联通，３：电信
        ///</summary>
        [Column("ReceiveMobileTelType", "接收人电话号码类型，１：移动，２：联通，３：电信")]
        public string ReceiveMobileTelType { get; set; }

        ///<summary>
        ///发送手机号
        ///</summary>
        [Column("SendMobile","发送手机号")]
        public string SendMobile { get; set; }

		///<summary>
		///发送状态（0：未发送，1：已在发送队列，2：发送成功，3：发送失败）
		///</summary>
        [Column("SendStatus","发送状态（0：未发送，1：已在发送队列，2：发送成功，3：发送失败）")]
        public int SendStatus { get; set; }

		///<summary>
		///发送时间
		///</summary>
        [Column("SendDate","发送时间")]
        public DateTime SendDate { get; set; }

		///<summary>
		///短信模板ID（预留）
		///</summary>
        [Column("SmsTplID","短信模板ID（预留）")]
        public int SmsTplID { get; set; }

		///<summary>
		///品牌
		///</summary>
        [Column("CarBrand","品牌")]
        public string CarBrand { get; set; }

		///<summary>
		///车型
		///</summary>
        [Column("CarSerial","车型")]
        public string CarSerial { get; set; }

		///<summary>
		///创建时间
		///</summary>
        [Column("CreatedTime","创建时间")]
        public DateTime CreatedTime { get; set; }
        ///<summary>
        ///是否加入发送短信序列，0：否，1：是
        ///</summary>
        [Column("IsJoinSendQueue", "是否加入发送短信序列")]
        public int IsJoinSendQueue { get; set; }


        ///<summary>
        ///是否使用短信通道发送过短信，0：否，1：是，大于1时代表已发送次数
        ///</summary>
        [Column("IsSentByChannel", "是否使用短信通道发送过短信，0：否，1：是，大于1时代表已发送次数")]
        public int IsSentByChannel { get; set; }

        ///<summary>
		///短信猫发送短信ID主键，通过此字段来定时更新发送状态
		///</summary>
        [Column("SmsCatSendID", "短信猫发送短信ID主键，通过此字段来定时更新发送状态")]
        public int SmsCatSendID { get; set; }

        ///<summary>
        ///发送状态更新时间
        ///</summary>
        [Column("SendStatusUpdatedTime", "发送状态更新时间")]
        public DateTime SendStatusUpdatedTime { get; set; }

        ///<summary>
        ///发送状态更新时间(通过短信通道发送)
        ///</summary>
        [Column("SendStatusUpdatedTimeByChannel", "发送状态更新时间")]
        public DateTime SendStatusUpdatedTimeByChannel { get; set; }

    }
}